// pages/scenter/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    LoginFromQYB:false,
    role:null
  },
  //返回上一页
  navigateBack() {
    wx.navigateBack({
      delta: 2
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this
    let userInfo = wx.getStorageSync('userInfo')
    console.log(userInfo)
    if(userInfo.LoginFromQYB==true && userInfo.Role==1){
      that.setData({
        LoginFromQYB:userInfo.LoginFromQYB
      })
    }
   
  },


  addphone(e){
    let _this = this
    let url = e.currentTarget.dataset.url
    wx.navigateTo({url: url})
  },
  editpass(e){
    let _this = this
    let url = e.currentTarget.dataset.url
    wx.navigateTo({url: url})
  },
  editsescript(e){
    let _this = this
    let url = e.currentTarget.dataset.url
    wx.navigateTo({url: url})
  }
})